﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pattern20中介者模式.Base
{
    public abstract class PlayerBase
    {
        public string Name { get; set; }
        public int Money { get; set; }

        public PlayerBase(string name, int money)
        {
            Name = name;
            Money = money;
        }

        public void Display()
        {
            Console.WriteLine($"{Name}现在还有{Money}元");
        }

        public abstract void Win(PlayerBase a, PlayerBase b, int money);
        public abstract void Lose(PlayerBase a, PlayerBase b, int money);


        ////////////////////////////////////////////////////////////////

        public abstract void Win(MediatorBase mediator, int money);
        public abstract void Lose(MediatorBase mediator, int money);

    }
}
